<?php
/*
	本插件：$this->model('model')->方法名();
	其他地方调用：model('jy_daibao/model')->方法名();
*/
namespace jy_daibao;
defined('BY_JYA') or exit('error');
class model extends \plugin{
	public function jy_commission($order=array(),$goodstitle=''){
		$basic=$this->plugin_setting('basic');
		if(!$basic['is_fenxiao']){
			return '';
		}
		$order['price']=$order['fee'];
		$order['ordersn']='jy_daibao'.$order['id'];
		$order['goods'][]=array('title'=>$goodstitle?:'工商代办服务');
		model('jy_commission/commission')->create($order);
		return true;
    }
}
?>